using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class activateacc : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        pnAlert.Visible = Request.QueryString.Count == 0;
        
        if (Request.QueryString.Count == 2)
        {
            string userId = Request.QueryString["userId"];
            string code = Request.QueryString["code"];
            UserAccBus userBus = new UserAccBus();
            bool rs = userBus.ActivateAcc(userId, code);
            pnFailed.Visible = !rs;
            pnCongra.Visible = rs;
        }
    }
}
